package com.ruoyi.system.domain.message;

import lombok.Data;
import java.io.Serializable;
import java.util.Date;

/**
 * 排班通知消息实体
 *
 * @author ruoyi
 */
@Data
public class ScheduleNotificationMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    /** 警员ID */
    private Long officerId;

    /** 警员姓名 */
    private String officerName;

    /** 消息类型 CREATE/UPDATE/DELETE */
    private String messageType;

    /** 消息标题 */
    private String title;

    /** 消息内容 */
    private String content;

    /** 排班日期 */
    private Date scheduleDate;

    /** 班次名称 */
    private String shiftName;

    /** 创建时间 */
    private Date createTime;

    public ScheduleNotificationMessage() {
        this.createTime = new Date();
    }

    public ScheduleNotificationMessage(Long officerId, String officerName, String messageType,
                                     String title, String content, Date scheduleDate, String shiftName) {
        this.officerId = officerId;
        this.officerName = officerName;
        this.messageType = messageType;
        this.title = title;
        this.content = content;
        this.scheduleDate = scheduleDate;
        this.shiftName = shiftName;
        this.createTime = new Date();
    }
}
